<?php $this->_extends('_layouts/default_layout'); ?>

<?php $this->_block('title'); ?>邮件模板管理<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<table class=dataTable>
	<thead>
		<tr>
			<th>模板名称</th>
			<th>主题</th>
            <th>模板分类</th>
            <th>行业分类</th>
            <th>action</th>
		</tr>
	</thead>
	<tbody>
	<? foreach ($tpls as $t): ?>
	<tr tid="<?=$t->id()?>">
        <td><?=$t->name?></td>
        <td><?=$t->subject?></td>
        <td><?=$t->type->name?></td>
        <td><?=$t->profession->name?></td>
		<td align=center>
			<a href="<?=url('/tpledit', 'tid/'.$t->id())?>" target="_blank"><img title="编辑" src="<?=$_BASE_DIR?>img/icon/Edit.png" /></a>
            <a href="<?=url('/del', 'tid/'.$t->id())?>"><img title="删除" src="<?=$_BASE_DIR?>img/icon/Delete.png" /></a>
		</td>
	</tr>
	<? endforeach; ?>
	</tbody>
</table>

<?php $this->_endblock(); ?>